import React, { Component } from 'react'
import List from './List'
import Search from './Search'

export default class App extends Component {
  state={
    users:[],
    err:'',
    isFirst:true,
    isLoading:false
  }
  updateState=(state)=>{
    this.setState(state)
  }
  render() {
    return (
      <div className="container">
        <Search updateState={this.updateState}/>
        <List {...this.state}/>
      </div>
    )
  }
}
